tar xf ${DOWNLOADDIR}/linux-firmware-20250808.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/linux-firmware-20250808
	make DESTDIR=${PWD}/dest install
	cp -a dest/lib/firmware ${SYSDIR}/sysroot/lib/
popd

mv ${SYSDIR}/sysroot/usr/lib/firmware{,.orig}
mkdir -pv ${SYSDIR}/sysroot/usr/lib/firmware
cp -a ${SYSDIR}/sysroot/usr/lib/firmware.orig/{amd*,radeon,iwlwifi-*,rt*} \
      ${SYSDIR}/sysroot/usr/lib/firmware/
rm -rf ${SYSDIR}/sysroot/usr/lib/firmware.orig
